package com.lintf.jwt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @ system:Window
 * @ author:lin tingfeng
 * @ data:2022/3/15-16:54
 * @ package_name:com.lintf.jwt.entity
 * @ project_name:SpringSecurity-JWT
 * @ desc:用户实体类
 */
@Data
@TableName(value = "user")
public class User {

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @TableField(value = "username")
    private String username;

    @TableField(value = "password")
    private String password;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "nick_name")
    private String nickName;

}
